View Issue Details

IDProjectCategoryView StatusLast Update
0001163K18X001.00 SKB SWANSWpublic2021-12-22 13:48
Reporter(SW) Sita HuangAssigned To(ALTech) Wooshin Kang Due Date
PrioritynormalSeveritys2-severeReproducibilityalways
Status closedResolutionfixed 
Summary0001163: [SWAN] Volume index change when HDMI unplug
DescriptionHi Wooshin,

We found a issue about the volume change when turn off some TV.
Here is a simple method to reproduce. When HDMI is unplugged, the sound sounds louder or quieter than the original.

It may be a issue of user experience.

Thanks.
Steps To Reproduce1. Play youtube music and set volume is 5 index.
2. Unplug HDMI, and then sound will be louder.
3. Plug HDMI, the sound sounds like 5 index.
Additional InformationWe found the behavior of volume changes in android framework when HDMI is plugged or unplugged.
./frameworks/base/services/core/java/com/android/server/audio/AudioService.java

You can use "dumpsys audio" commands to dump the following information. Please check the streamVolume field of STREAM_BTV.
Before unplug HDMI:
- STREAM_BTV:
   Muted: false
   Min: 0
   Max: 32
   streamVolume:5
   Current: 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 24, 80000 (spdif): 5, 4000000 (usb_headset): 8, 40000000 (default): 24
   Devices: hdmi, spdif

After unplug HDMI:
- STREAM_BTV:
   Muted: false
   Min: 0
   Max: 32
   streamVolume:24
   Current: 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 24, 80000 (spdif): 5, 4000000 (usb_headset): 8, 40000000 (default): 24
   Devices: speaker, spdif
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (SW) Jacky Chiang , (SW) Jason Ling , (SW) Jim Lin

Activities

(SW) Jason Ling

2021-03-04 18:05

developer   ~0006225

Last edited: 2021-03-04 18:06

Hi Wooshin,

As far as I know, some TV will send hot plug event to STB when TV off.
if user listen to YouTubeMusic then turn off TV, I think this issue may happen.

Sita provided a way to easily reproduce this issue, playing YouTube then unplugging HDMI cable.
If previous volume is very low, after unplugging HDMI cable, the volume index will change to 24.
The sound suddenly becomes louder, it will bother user.

Could you check this issue with SPTEK?

(ALTech) Wooshin Kang

2021-03-05 08:27

developer   ~0006233

Hi jason,

I will check it and update.

Thanks.

(ALTech) Wooshin Kang

2021-03-05 18:48

developer   ~0006246

Last edited: 2021-03-06 08:10

This issue is controlled on below link.
https://jira.skbroadband.com/browse/BTVSBOX-461

(ALTech) Wooshin Kang

2021-03-11 13:17

developer   ~0006310

Hi jason,

Root cause of this issue is https://mantis.cnsbg.foxconn.com/vaas/view.php?id=1069.
Please create ticket on Synaptics's JIRA for it.

Thanks.

(SW) Sita Huang

2021-03-11 14:22

developer   ~0006312

Hi Wooshin,

There is already an similar issue (https://synaextjira.atlassian.net/browse/SKBSBALT-126) under discussion.
Do we need to open a new one?

Thanks.

(ALTech) Wooshin Kang

2021-03-11 15:02

developer   ~0006314

Hi Sita,

I think you don't need.

Thanks.

(SW) Sita Huang

2021-03-11 18:19

developer   ~0006318

Hi Wooshin,

I'm sorry. I though there is an similar issue (SKBSBALT-126) which is wrong.

Because volume change or synchronization is the behavior of audio services in android framework.
And this issue is related to HDMI device instead of SPDIF device.
I think root cause of this issue is not 0001069.

After SPTEK committed (https://bitbucket.skbroadband.com/projects/BTVSBOX/repos/platform-frameworks-base/commits/86c0756db51a81b94e9fe553bae5c4ab155426d9),
   this issue does not be reproduced after testing this issue again.

Thanks.

(ALTech) Wooshin Kang

2021-03-12 08:08

developer   ~0006324

Hi sita,
Yes, it is workaround of SPTEK for SPDIF issue.
After applying synaptics's patch for https://synaextjira.atlassian.net/browse/SKBSBALT-126, we have to check this issue again.

Thanks.

(SW) Jason Ling

2021-03-15 11:49

developer   ~0006345

Hi Wooshin,

Our QA members found new issues that can easily occur after applying this workaround

issue: Passthrough is not working. (no audio from HDMI), but after rebooting the STB, the issue disappeared.

Our QA members captured audio status by following 2 commands
dumpsys audio
dumpsys media.audio_flinger

Please forward the attachment to SPTEK for analysis.

audio_pt_fail.zip (switch from Btv to Passthrough mode, the issue occurred, no audio from HDMI)
audio_pt_ok.zip (rebooting STB, the issue disappeared)
audio_pt_fail.zip (11,490 bytes)
audio_pt_ok.zip (9,902 bytes)

(ALTech) Wooshin Kang

2021-03-17 08:40

developer   ~0006410

Hi Jason,

Let me check it and i will forward to SPTEK.

Thanks.

(SW) River Wong

2021-12-22 13:48

developer   ~0009011

The original issue is fixed by MW as described in Synaptics Jira126.

And the pass-through issue reported by our SQA is fixed by following commit.
commit 15001ac8c78c43bd7b5d113451d19532d342ea1a
Author: river wong <river.wong@fii-foxconn.com>
Date: Thu Jan 7 11:09:41 2021 +0800

    Avoid passthrough mode does not work when passthrough mode is enable before system boot.

Issue History

Date Modified Username Field Change
2021-03-04 17:47 (SW) Sita Huang New Issue
2021-03-04 17:47 (SW) Sita Huang Status new => assigned
2021-03-04 17:47 (SW) Sita Huang Assigned To => (ALTech) Wooshin Kang
2021-03-04 17:47 (SW) Sita Huang Issue Monitored: (SW) Jason Ling
2021-03-04 17:48 (SW) Sita Huang Issue Monitored: (SW) Jacky Chiang
2021-03-04 17:49 (SW) Sita Huang Issue Monitored: (SW) Jim Lin
2021-03-04 18:05 (SW) Jason Ling Note Added: 0006225
2021-03-04 18:06 (SW) Jason Ling Note Edited: 0006225
2021-03-05 08:27 (ALTech) Wooshin Kang Note Added: 0006233
2021-03-05 18:48 (ALTech) Wooshin Kang Note Added: 0006246
2021-03-05 18:49 (ALTech) Wooshin Kang Note Edited: 0006246
2021-03-06 08:10 (ALTech) Wooshin Kang Note Edited: 0006246
2021-03-11 13:17 (ALTech) Wooshin Kang Note Added: 0006310
2021-03-11 14:22 (SW) Sita Huang Note Added: 0006312
2021-03-11 15:02 (ALTech) Wooshin Kang Note Added: 0006314
2021-03-11 18:19 (SW) Sita Huang Note Added: 0006318
2021-03-12 08:08 (ALTech) Wooshin Kang Note Added: 0006324
2021-03-15 11:49 (SW) Jason Ling File Added: audio_pt_fail.zip
2021-03-15 11:49 (SW) Jason Ling File Added: audio_pt_ok.zip
2021-03-15 11:49 (SW) Jason Ling Note Added: 0006345
2021-03-17 08:40 (ALTech) Wooshin Kang Note Added: 0006410
2021-12-22 13:48 (SW) River Wong Status assigned => closed
2021-12-22 13:48 (SW) River Wong Resolution open => fixed
2021-12-22 13:48 (SW) River Wong Note Added: 0009011